<?php
namespace app\admin\logic;

class BannerLogic
{
    //post接到的name名和数据库字段对应
    public static function getBannerData($param)
    {
        $data = [
            'banner_name' =>$param['name'],
            'sort' =>$param['sort'],
            'add_time' =>time(),
        ];

        return $data;
    }
}